﻿using System.Collections.Generic;
using FlowCanvas.Nodes;
using ParadoxNotion.Design;
using Yoozoo.Gameplay.Liberty;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    public class DestroyMultEffects : CallableActionNode<List<int>>
    {
        public override void Invoke(List<int> effectUniqueIdsList)
        {
            if (effectUniqueIdsList!=null)
            {
                foreach (var id in effectUniqueIdsList)
                {
                    BlueprintUtils.DestroyEffect(id);
                }
            }
        }
    }
}